Nginx in the use of pseudo static is directly in the nginx.conf write rules, do not need to be like Apache to open the Write module (mod_rewrite) in order to perform pseudo static.
Nginx only need to open the nginx.conf configuration file, write
The use of pseudo-static in nginx directly writes rules in nginx. conf, and does not require pseudo-static operations like apache to enable the write module (mod_rewrite.Nginx only needs to open the nginx. conf configuration file and write the
Recently, I tried to configure and install a website on VPs. VPs installed lnmp (Linux + nginx + MySQL + PHP) and often encountered some problems during rule resetting, directly using Apache rules to nginx does not work. In the past, Apache rewrite
This article introduces to you about Nginx in the rewrite pseudo-static rules of the explanation (detailed), there is a certain reference value, the need for friends can refer to, I hope to help you.
Trust now the big department with the Linux VPS
Nginx common pseudo-static rules (rewrite)-Discuz X3.2-WordPress-PHPCMS-ECSHOP-SHOPE (convert), nginx-discuz
When we switch from an apache server to an Nginx server, their pseudo-static rules are different. Therefore, you are familiar with the
Trust now the big department with the Linux VPS partner are using this agile spread nginx, this day to liquidate the most common PHP French rewrite (pseudo-static law).Wordpress:Location/{Index index.html index.php;if (-f $request
Nginx-rewrite regular expression matching
Case matching
~ to match case sensitivity~* for case-insensitive matching!~ and!~* are case insensitive and case-insensitive mismatches, respectively.
File and directory matching
-F and!-f are used to
Introduction: This is a detailed page for nginx rewrite pseudo-static configuration parameters. It introduces PHP, related knowledge, skills, experience, and some PHP source code.
Class = 'pingjiaf' frameborder = '0' src = 'HTTP: // biancheng.dnbc?
This station a server originally is the Windows system, uses the Isapi_rewrite to carry on the URL rewriting, has one rule is
Rewriterule ^/(. { 6}) (\d{3}) (. +)/php/http://www.xxx.com/qq$2.apk [Nc,l,nu]
In the middle of the use of {6} refers to
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.